/**
 *******************************************************************************
 * @FileName  : kv_adapt.h
 * @Author    : GaoQiu
 * @CreateDate: 2021-4-27
 * @Copyright : Copyright(C) GaoQiu
 *              All Rights Reserved.
 *******************************************************************************
 *
 * The information contained herein is confidential and proprietary property of
 * GaoQiu and is available under the terms of Commercial License Agreement
 * between GaoQiu and the licensee in separate contract or the terms described
 * here-in.
 *
 * This heading MUST NOT be removed from this file.
 *
 * Licensees are granted free, non-transferable use of the information in this
 * file under Mutual Non-Disclosure Agreement. NO WARRENTY of ANY KIND is provided.
 *
 *******************************************************************************
 */
#ifndef _KV_ADAPT_H_
#define _KV_ADAPT_H_

#include "utils/defs_types.h"

#define KV_CLZ(x)   MathClz(x) //__CLZ(x);

void *kv_malloc(uint32_t size);
int kv_free(void *p);

void *kv_create_lock(void);
void kv_lock(void *lock);
void kv_unlock(void *lock);

#endif /* _KV_ADAPT_H_ */
